

<%@ page import="com.surelution.projects.crm.GasCardRecharge" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'gasCardRecharge.label', default: 'GasCardRecharge')}" />
        <title><g:message code="default.edit.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
            <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="default.edit.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${gasCardRechargeInstance}">
            <div class="errors">
                <g:renderErrors bean="${gasCardRechargeInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form method="post" >
                <g:hiddenField name="id" value="${gasCardRechargeInstance?.id}" />
                <g:hiddenField name="version" value="${gasCardRechargeInstance?.version}" />
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="gasCardNo"><g:message code="gasCardRecharge.gasCardNo.label" default="Gas Card No" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasCardRechargeInstance, field: 'gasCardNo', 'errors')}">
                                    <g:textField name="gasCardNo" value="${gasCardRechargeInstance?.gasCardNo}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="marketName"><g:message code="gasCardRecharge.marketName.label" default="Market Name" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasCardRechargeInstance, field: 'marketName', 'errors')}">
                                    <g:textField name="marketName" value="${gasCardRechargeInstance?.marketName}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="openAgency"><g:message code="gasCardRecharge.openAgency.label" default="Open Agency" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasCardRechargeInstance, field: 'openAgency', 'errors')}">
                                    <g:textField name="openAgency" value="${gasCardRechargeInstance?.openAgency}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="stationName"><g:message code="gasCardRecharge.stationName.label" default="Station Name" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasCardRechargeInstance, field: 'station', 'errors')}">
                                    <g:textField name="stationName" value="${gasCardRechargeInstance?.station.name}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="tradeNo"><g:message code="gasCardRecharge.tradeNo.label" default="Trade No" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasCardRechargeInstance, field: 'tradeNo', 'errors')}">
                                    <g:textField name="tradeNo" value="${gasCardRechargeInstance?.tradeNo}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="tradeSum"><g:message code="gasCardRecharge.tradeSum.label" default="Trade Sum" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasCardRechargeInstance, field: 'tradeSum', 'errors')}">
                                    <g:textField name="tradeSum" value="${gasCardRechargeInstance?.tradeSum}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="tradeTime"><g:message code="gasCardRecharge.tradeTime.label" default="Trade Time" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasCardRechargeInstance, field: 'tradeTime', 'errors')}">
                                    <g:textField name="tradeTime" value="${gasCardRechargeInstance?.tradeTime}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="tradeType"><g:message code="gasCardRecharge.tradeType.label" default="Trade Type" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasCardRechargeInstance, field: 'tradeType', 'errors')}">
                                    <g:textField name="tradeType" value="${gasCardRechargeInstance?.tradeType}" />
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:actionSubmit class="save" action="update" value="${message(code: 'default.button.update.label', default: 'Update')}" /></span>
                    <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
